package com.devops.admin.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.devops.admin.model.DOSHelmChart;
import com.devops.admin.po.DOSChartParamPo;
import com.devops.admin.po.DOSChartPo;
import com.devops.admin.vo.DOSChartParamVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @ClassNem DOSHelmChartMapper
 * @Description TODO
 * @Author heyabo
 * @Date 2022/3/23 15:10
 * @Version 1.0
 **/
@Mapper
public interface DOSHelmChartMapper extends BaseMapper<DOSHelmChart> {

    /**
     * @Author heyabo
     * @Description 管理员查询chart列表
     * @Date 15:58 2022/3/23
     * @Param [page, page1]
     * @return java.util.List<com.devops.admin.po.DOSChartParamPo>
     **/
    List<DOSChartParamPo> getChartAdminList(Page<DOSChartParamPo> page,@Param("param") DOSChartParamVo paramVo);

    /**
     * @Author heyabo
     * @Description 查询部署的chart列表
     * @Date 09:29 2022/3/31
     * @Param [projectId]
     * @return java.util.List<com.devops.admin.po.DOSChartPo>
     **/
    List<DOSChartPo> getDeployCharts(@Param("projectId") Integer projectId);

    /**
     * @Author heyabo
     * @Description 普通用户查询chart列表
     * @Date 15:58 2022/3/23
     * @Param [page, page1]
     * @return java.util.List<com.devops.admin.po.DOSChartParamPo>
     **/
    List<DOSChartParamPo> getChartList(Page<DOSChartParamPo> page,@Param("param") DOSChartParamVo paramVo);
}
